import json

import requests

class NovelLogin(object):

    @classmethod
    def login(cls,login_data):
        url="http://127.0.0.1:8888/api/front/user/login"
        headers={'Content-Type': 'application/json'}
        resp=requests.post(url=url,headers=headers,data=json.dumps(login_data))
        return resp


if __name__ == '__main__':
    data={
    "username": "17537642779",
    "password": "liu20030504"
    }
    print(TestLogin.login(data).json())